<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('修改发货数量')" />
    <th:block th:include="include :: datetimepicker-css" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-so-edit" th:object="${so}">
            <input name="id" th:field="*{id}" type="hidden">
            <div class="form-group">    
                <label class="col-sm-3 control-label">订单日期：</label>
                <div class="col-sm-8">
                    <input name="ddate" readonly="true" th:value="${#dates.format(so.ddate, 'yyyy-MM-dd')}" class="form-control" placeholder="yyyy-MM-dd" type="text">
                   <!-- <div class="input-group date">
                       &lt;!&ndash; <span class="input-group-addon"><i class="fa fa-calendar"></i></span>&ndash;&gt;
                    </div>-->
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label ">单号：</label>
                <div class="col-sm-8">
                    <input name="code" readonly="true" th:field="*{code}" class="form-control" type="text" >
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">单据类型：</label>
                <div class="col-sm-8">
                    <input name="ctype" readonly="true" th:field="*{ctype}" class="form-control" type="text" >
                   <!-- <select name="ctype" class="form-control m-b" required>
                        <option value="">所有</option>
                    </select>
                    <span class="help-block m-b-none"><i class="fa fa-info-circle"></i> 代码生成请选择字典属性</span>-->
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label ">订单状态：</label>
                <div class="col-sm-8">
                    <input name="st" readonly="true" th:field="*{st}" class="form-control" type="text" >
                </div>
            </div>
            <!--<div class="form-group">
                <label class="col-sm-3 control-label ">物流单号：</label>
                <div class="col-sm-8">
                    <input name="st" th:field="*{logcode}" class="form-control" type="text" >
                </div>
            </div>-->
            <div class="form-group">    
                <label class="col-sm-3 control-label">制单时间：</label>
                <div class="col-sm-8">
                    <input name="sysdt" readonly="true" th:value="${#dates.format(so.sysdt, 'yyyy-MM-dd')}" class="form-control" placeholder="yyyy-MM-dd" type="text" >
                   <!-- <div class="input-group date">
                        &lt;!&ndash;<span class="input-group-addon"><i class="fa fa-calendar"></i></span>&ndash;&gt;
                    </div>-->
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label ">打单人员：</label>
                <div class="col-sm-8">
                    <input name="emp" readonly="true" th:field="*{emp}" class="form-control" type="text" >
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">审核人：</label>
                <div class="col-sm-8">
                    <input name="creditemp" readonly="true" th:field="*{creditemp}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">审核时间：</label>
                <div class="col-sm-8">
                    <div class="input-group date">
                        <input name="creditdt" readonly="true" th:value="${#dates.format(so.creditdt, 'yyyy-MM-dd')}" class="form-control" placeholder="yyyy-MM-dd" type="text">
                        <!--<span class="input-group-addon"><i class="fa fa-calendar"></i></span>-->
                    </div>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">发货人：</label>
                <div class="col-sm-8">
                    <input name="sendemp" readonly="true" th:field="*{sendemp}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">发货时间：</label>
                <div class="col-sm-8">
                    <div class="input-group date">
                        <input name="senddt" readonly="true" th:value="${#dates.format(so.senddt, 'yyyy-MM-dd')}" class="form-control" placeholder="yyyy-MM-dd" type="text">
                        <!--<span class="input-group-addon"><i class="fa fa-calendar"></i></span>-->
                    </div>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">接受人：</label>
                <div class="col-sm-8">
                    <input name="recemp" readonly="true" th:field="*{recemp}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">接受时间：</label>
                <div class="col-sm-8">
                    <div class="input-group date">
                        <input name="recdt" readonly="true" th:value="${#dates.format(so.recdt, 'yyyy-MM-dd')}" class="form-control" placeholder="yyyy-MM-dd" type="text">
                     <!--   <span class="input-group-addon"><i class="fa fa-calendar"></i></span>-->
                    </div>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">备注：</label>
                <div class="col-sm-8">
                    <input name="memo" th:field="*{memo}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">是否厂家代发：</label>
                <div class="col-sm-8">
                   <!-- <select name="isreplace" class="form-control m-b" th:with="type=${@dict.getType('sys_yes_no')}">
                        <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{isreplace}"></option>
                    </select>-->
                    <input name="isreplace" th:field="*{isreplace}" class="form-control" type="text">
                </div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <th:block th:include="include :: datetimepicker-js" />
    <script type="text/javascript">
        var prefix = ctx + "erp/so";
        $("#form-so-edit").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/edit", $('#form-so-edit').serialize());
            }
        }

        $("input[name='ddate']").datetimepicker({
            format: "yyyy-mm-dd",
            minView: "month",
            autoclose: true
        });

        $("input[name='sysdt']").datetimepicker({
            format: "yyyy-mm-dd",
            minView: "month",
            autoclose: true
        });

        $("input[name='creditdt']").datetimepicker({
            format: "yyyy-mm-dd",
            minView: "month",
            autoclose: true
        });

        $("input[name='senddt']").datetimepicker({
            format: "yyyy-mm-dd",
            minView: "month",
            autoclose: true
        });

        $("input[name='recdt']").datetimepicker({
            format: "yyyy-mm-dd",
            minView: "month",
            autoclose: true
        });
    </script>
</body>
</html>